package com.nowcoder.community.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;


@Data
public class Conversation {
    private Message message;
    private Integer total;
    private Integer unread;

    public String getId() {
        return message.getConversationId();
    }

    /**
     * 此会话的用户对象
     */
    @TableField(exist = false)
    private User targetUser;
}
